<?php

declare(strict_types=1);

use Yansongda\Pay\Pay;

return [
    'alipay' => [
        'default' => [
            // 必填-支付宝分配的 app_id
            'app_id' => '2021000122636240',
            // 必填-应用私钥 字符串或路径
            'app_secret_cert' => 'MIIEpAIBAAKCAQEAqwzTsPjndChNwLYig28criDqemaqoJkgy/o+OBw5PBzCn9I80xKlEgn+IYhuWI/4SWhl4rGpBZT3nOYbZmq4c+71GDOniXxZJunSgyP5Bigwq0lw2AB+tlCglU12o7r8ylK45A9YK0M3kS4+72xBB5GJyLA+wY6OHK3gcaA2M2xYirCyJ76OXRvCoNpsZcqCtGMSSZtymYVIcm1tmV3WhW0rcvEd8pSBEHrC0/g8nacflAfEE7y6sgedVESpNTOwBmBBaFfB9R/XkuDUAneM/mId+pl5II5Ur7Rizy4f5eP9+QzQOy5UdjXI5Bu1K7Yk1dRnBETyVfn9XHh1aEbALQIDAQABAoIBAQCgpuZ4c/5nEaedVTNrQMOuJAo2NhERz2CHVBx19MQo2lZNZ1drYzqYi7wc4JfLJEUtJRl0Zip6rKQ3v8OCWL+vW4LlXTaAocLWEox+UR4Fk1/KsKqEpUpdj7KTJ/NC6k+c8z7mLCdCUtpwx/+iPYmCQ0YmsKnwfySoeQKxlajyd8mku86PaR65WYmb7fYUKHn6WWpojaxqvtp4FCT8fxC1fxMm3vrtSUcYQTexhRZUY9SYfwpSgLDq1Bt+PvV/uaSG04sIX9KfMp538Do0NFWOIsTZh+nq7XSU1Ksym4aj+vBHlfU4tj563g0E9vUaw5i7QH8eC0dGbTAX5FSedhOhAoGBAN2OAPYF94hf6YRSwt2W6FlcCoB66GCfooaeYPrkSys3EB0kEgQ6ldzoG1SMAqSE6/5JkA0tL8X2RufqRTbNduJpHu9qQppCk6g6i3gIuDnmZeAMgM6dCHSecmNQWkO4MuVeBSP44Xmk3mNbqRyyYqdqyn5IyYfdi1Qkf/6cAAipAoGBAMWktoq/MpRFb/NtpfVaNU3Jgc2VyYMsrLBjzGDN4qo48PkKApT2N4bVnHbu1SAT7kk4Yr/mAGZ2t5Yqd4syzQsIXs/9g3Gj+kE1uj51DTpnYB3avtRVVeP76JVMRH5ZVHckXBfqoV6N3QBZI4++zLLBBXL4wEeSxxigOzBvwpnlAoGBAIi4yBkKx52N6rIwzHYoWUxDw2tT7bEq8gX3GMvbNBQAD96b0s5vROolBjCfkkXqjSPIS7AF8ZRNjaYyaPIPy0yfKGsAfQdrDGnlbwns/5sjdjzUGmzmdUBaQybMgFeIBUiMQ8nWHXaO6noQJ4VBBCZifYF+83b3nbKYL7B0noS5AoGAQghuFJ0cwP0SEjqoH/krpfmVLKLG2NSsPaKaPh2LhWPQ3uPBSROaKapkxDe3bSg7jKsSExs9Nv6jB8DYf+FRMEZzpvoEWIt4qSDSQNvKt6CiNFdJOpfoQmt/oaIBoFUoK0Yynqr9jyHGnL8ranNM4MwsjeUeGMupSUj/fYdZdSECgYAqLfkOMjBEENCPhureaiZJpXFK+IavbasQp74uXalFeYid1G9tqkYZIG6eprID3pYihQtWJzdIYByY5bbXnGBA4ENvhac0Nm5v1YEMyX57N2WqKcu7baEqJ0r1FRC9i0+3UDAJ2vzahXChmo39HFEIzFs8krKrATK4j5nyP1mq8A==',
            // 必填-应用公钥证书 路径
            'app_public_cert_path' => storage_path('app/certs/appPublicCert.crt'),
            // 必填-支付宝公钥证书 路径
            'alipay_public_cert_path' => storage_path('app/certs/alipayPublicCert.crt'),
            // 必填-支付宝根证书 路径
            'alipay_root_cert_path' => storage_path('app/certs/alipayRootCert.crt'),
            'return_url' => '/alipay/return',
            'notify_url' => '/alipay/notify',
            // 选填-服务商模式下的服务商 id，当 mode 为 Pay::MODE_SERVICE 时使用该参数
            'service_provider_id' => '2088621998360275',
            // 选填-默认为正常模式。可选为： MODE_NORMAL, MODE_SANDBOX, MODE_SERVICE
            'mode' => Pay::MODE_SANDBOX,
        ],
    ],
    'wechat' => [
        'default' => [
            // 必填-商户号，服务商模式下为服务商商户号
            'mch_id' => '',
            // 必填-商户秘钥
            'mch_secret_key' => '',
            // 必填-商户私钥 字符串或路径
            'mch_secret_cert' => '',
            // 必填-商户公钥证书路径
            'mch_public_cert_path' => '',
            // 必填
            'notify_url' => '',
            // 选填-公众号 的 app_id
            'mp_app_id' => '',
            // 选填-小程序 的 app_id
            'mini_app_id' => '',
            // 选填-app 的 app_id
            'app_id' => '',
            // 选填-合单 app_id
            'combine_app_id' => '',
            // 选填-合单商户号
            'combine_mch_id' => '',
            // 选填-服务商模式下，子公众号 的 app_id
            'sub_mp_app_id' => '',
            // 选填-服务商模式下，子 app 的 app_id
            'sub_app_id' => '',
            // 选填-服务商模式下，子小程序 的 app_id
            'sub_mini_app_id' => '',
            // 选填-服务商模式下，子商户id
            'sub_mch_id' => '',
            // 选填-微信公钥证书路径, optional，强烈建议 php-fpm 模式下配置此参数
            'wechat_public_cert_path' => [
                '45F59D4DABF31918AFCEC556D5D2C6E376675D57' => __DIR__.'/Cert/wechatPublicKey.crt',
            ],
            // 选填-默认为正常模式。可选为： MODE_NORMAL, MODE_SERVICE
            'mode' => Pay::MODE_NORMAL,
        ],
    ],
    'unipay' => [
        'default' => [
            // 必填-商户号
            'mch_id' => '',
            // 必填-商户公私钥
            'mch_cert_path' => '',
            // 必填-商户公私钥密码
            'mch_cert_password' => '000000',
            // 必填-银联公钥证书路径
            'unipay_public_cert_path' => '',
            // 必填
            'return_url' => '',
            // 必填
            'notify_url' => '',
        ],
    ],
    'http' => [ // optional
        'timeout' => 5.0,
        'connect_timeout' => 5.0,
        // 更多配置项请参考 [Guzzle](https://guzzle-cn.readthedocs.io/zh_CN/latest/request-options.html)
    ],
    // optional，默认 warning；日志路径为：sys_get_temp_dir().'/logs/yansongda.pay.log'
    'logger' => [
        'enable' => false,
        'file' => null,
        'level' => 'debug',
        'type' => 'single', // optional, 可选 daily.
        'max_file' => 30,
    ],
];
